home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFBIND
/
VESCAPES.S
< prev
next >
Wrap
Text File
|
1993-03-16
|
3KB
|
126 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*************************************************************************
;*
;* Escape functions 1.
;* This random collection is all in one module because if you use any
;* one of these functions the overhead of having them all linked in is
;* only about 50 bytes.
;*
;*************************************************************************
;*------------------------------------------------------------------------
;*-----------------------------------------------------------------------
;* vesc_honly
;* For VDI escape calls that use a handle only.
;* Entry: d0.w = VDI function number.
;*-----------------------------------------------------------------------
;*------------------------------------------------------------------------
vesc_honly:
; .cargs #8,handle.w
handle = 8
link a6,#-2
; VContrl #5,d0
move.w handle(a6),-(sp) ; contrl[6]
move.w d0,-(sp) ; contrl[5]
subq.l #2,sp ; contrl[4]
clr.l -(sp) ; contrl[3,2]
clr.w -(sp) ; contrl[1]
move.w #5,-(sp) ; contrl[0]
subq.l #4,sp ;* -> ptsout
pea -2(a6) ;* -> intout (most don't use this)
subq.l #8,sp ;* -> ptsin, intin
pea 16(sp) ;* -> contrl
jmp vdicall
;*------------------------------------------------------------------------
;* Escape functions using just the vdi handle...
;*------------------------------------------------------------------------
globl _v_exit_cur
_v_exit_cur:
;* Exit alpha/cursor mode.
moveq.l #2,d0
bra vesc_honly
globl _v_enter_cur
_v_enter_cur:
;* Enter alpha/cursor mode.
moveq.l #3,d0
bra vesc_honly
globl _v_curup
_v_curup: ;* Alpha cursor up.
moveq.l #4,d0
bra vesc_honly
globl _v_curdown
_v_curdown:
;* Alpha cursor down.
moveq.l #5,d0
bra vesc_honly
globl _v_curright
_v_curright:
;* Alpha cursor right.
moveq.l #6,d0
bra vesc_honly
globl _v_curleft
_v_curleft:
;* Alpha cursor left.
moveq.l #7,d0
bra vesc_honly
globl _v_curhome
_v_curhome:
;* Alpha cursor home.
moveq.l #8,d0
bra vesc_honly
globl _v_eeos
_v_eeos: ;* Erase to end of screen (alpha mode).
moveq.l #9,d0
bra vesc_honly
globl _v_eeol
_v_eeol: ;* Erase to end of line (alpha mode).
moveq.l #10,d0
bra vesc_honly
globl _v_rvon
_v_rvon: ;* Alpha reverse video on.
moveq.l #13,d0
bra vesc_honly
globl _v_rvoff
_v_rvoff: ;* Alpha reverse video off.
moveq.l #14,d0
bra vesc_honly
globl _vq_tabstatus
_vq_tabstatus:
;* Inquire tablet status.
moveq.l #16,d0
bra vesc_honly
globl _v_hardcopy
_v_hardcopy:
;* Output hardcopy.
moveq.l #17,d0
bra vesc_honly
globl _v_rmcur
_v_rmcur: ;* Remove last graphic cursor.
moveq.l #19,d0
bra vesc_honly
globl _v_form_adv
_v_form_adv:
;* Form advance.
moveq.l #20,d0
bra vesc_honly
globl _v_clear_disp_list
_v_clear_disp_list:
;* Clear display list.
moveq.l #22,d0
bra vesc_honly
;* end of code